package tsm.constants;

public class MagicConstant {

	// layout constraint
	public static final byte NONE_CONSTRAINT = 0;
	public static final byte NORTH_CONSTRAINT = 1;
	public static final byte SOUTH_CONSTRAINT = 2;
	public static final byte CENTER_CONSTRAINT = 3;
	public static final byte WEST_CONSTRAINT = 4;
	public static final byte EAST_CONSTRAINT = 5;

	// scrollable
	public static final byte NONE_SCROLL = 0;
	public static final byte SCROLLABLE_X = 1;
	public static final byte SCROLLABLE_Y = 2;
	public static final byte SCROLLABLE = 3;

	// Box-orientation constant
	public static final byte CENTER = 4;
	public static final byte TOP = 0;
	public static final byte LEFT = 1;
	public static final byte BOTTOM = 2;
	public static final byte RIGHT = 3;

	// layout
	public static final byte BOXLAYOUT_Y = 0;
	public static final byte BOXLAYOUT_X = 1;
	public static final byte BORDERLAYOUT = 2;
	public static final byte FLOWLAYOUT_LEFT = 3;
	public static final byte FLOWLAYOUT_RIGHT = 4;
	public static final byte FLOWLAYOUT_CENTER = 5;
	public static final byte GRIDLAYOUT = 6;
	public static final byte GROUP = 7;
	public static final byte COORDINATE = 8;
	public static final byte TABLE = 9;

	// key
	public static final String COMPONENT_ID_KEY = "comp_id";
	public static final String COMPONENT_RMS_KEY = "rms";
	public static final String COMPONENT_ACTION_KEY = "action";

	public static final int CREATE_PAGE = 1;

	public static final int ADD_COMPONENT_LABEL = 100;
	public static final int ADD_COMPONENT_BUTTON = 101;
	public static final int ADD_COMPONENT_CHECKBOX = 102;
	public static final int ADD_COMPONENT_RADIO_BUTTON_GROUP = 103;
	public static final int ADD_COMPONENT_LIST = 104;
	public static final int ADD_COMPONENT_COMBOBOX = 105;
	public static final int ADD_COMPONENT_TEXTAREA = 106;
	public static final int ADD_COMPONENT_TEXTFIELD = 107;
	public static final int ADD_COMPONENT_TREE = 108;
	public static final int ADD_COMPONENT_TABLE = 109;
	public static final int ADD_COMPONENT_MEDIA = 110;
	public static final int ADD_CONTAINER_TO_PAGE = 111;
	public static final int ADD_CONTAINER_TO_CONTAINER = 112;
	public static final int ADD_COMPONENT_LINK = 113;

	public static final int ADD_COMMAND = 500;
	public static final int ADD_ACTION = 501;

	public static final int SEND_SMS_COMMAND = 600;
	public static final int OPEN_URL_COMMAND = 601;
	public static final int SEND_A_BEAN_COMMAND = 602;
	public static final int UPLOAD_DATA_COMMAND = 603;
	public static final int SHOW_DIALOG_COMMAND = 604;
	public static final int CHAT_TO_COMMAND = 605;
	public static final int CLOSE_PAGE_COMMAND = 606;
	public static final int EXIT_APP_COMMAND = 607;
	public static final int DISCONNECT_COMMAND = 608;
	public static final int OPEN_BUDDYPAGE_COMMAND = 610;
	public static final int OPEN_CHAT_LIST_COMMAND = 611;
	public static final int OPEN_INVITE_CONFERENCE_COMMAND = 612;
	public static final int USING_CAMERA_COMMAND = 613;
	public static final int OPEN_PLAYER_PAGE_COMMAND = 614;
	public static final int OPEN_CONFERENCE_LIST_COMMAND = 615;
	public static final int OPEN_CONFIRM_JOIN_CONFERENCE_COMMAND = 616;
	public static final int START_VIBRATE_COMMAND = 617;
	public static final int OPEN_URL_TO_BROWSER_COMMAND = 618;
	public static final int BROWSING_CARD_COMMAND = 619;

	public static final int END_PAGE = 1000;
	public static final int END_COMMAND = 1001;
	public static final int REQUEST_FOCUS_COMMAND = 1002;

	public static final byte VALUE_IS_CONSTANT = 0;
	public static final byte VALUE_GET_FROM_COMPONENTS = 1;

	public static final byte INTEGER_PARAMETERS = 0;
	public static final byte STRING_PARAMENTERS = 1;
	public static final byte BOOLEAN_PARAMENTERS = 2;
	public static final byte LONG_PARAMENTERS = 3;
	public static final byte BYTEARRAY_PARAMETERS = 4;
	public static final byte BUTTON_GROUP_PARAMETERS = 5;
	public static final byte LIST_PARAMETERS = 6;

	/**
	 * Allows any type of input into a text field, if a constraint is not
	 * supported by an underlying implementation this will be the default.
	 */
	public static final int ANY = 0;

	/**
	 * The user is allowed to enter an e-mail address.
	 */
	public static final int EMAILADDR = 1;

	/**
	 * The user is allowed to enter only an integer value.
	 */
	public static final int NUMERIC = 2;

	/**
	 * The user is allowed to enter a phone number.
	 */
	public static final int PHONENUMBER = 3;

	/**
	 * The user is allowed to enter a URL.
	 */
	public static final int URL = 4;

	/**
	 * The user is allowed to enter numeric values with optional decimal
	 * fractions, for example "-123", "0.123", or ".5".
	 */
	public static final int DECIMAL = 5;

	/**
	 * Indicates that the text entered is confidential data that should be
	 * obscured whenever possible.
	 */
	public static final int PASSWORD = 0x10000;

	public static final byte INPUT_MODE_Abc = 0;
	public static final byte INPUT_MODE_ABC = 1;
	public static final byte INPUT_MODE_abc = 2;
	public static final byte INPUT_MODE_123 = 3;
}
